Skip to content

feat(tabs): adds the md-tab-group component - #376

Merged
robertmesserle merged 1 commit into
angular:masterfrom
robertmesserle:md-tab-group
May 17, 2016
Merged

robertmesserle merged 1 commit into
angular:masterfrom
robertmesserle:md-tab-group

Conversation

@robertmesserle

Copy link
Copy Markdown
Contributor

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 28, 2016
import {By} from 'angular2/platform/browser';

export function main() {
ddescribe('MdTabGroup', () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you forgot a ddescribe here :)

@robertmesserle

Copy link
Copy Markdown
Contributor Author

@kara Addressed your comments.

@jelbourn This might actually be okay to merge this week - I got it working with focus state and modified the arrow functionality so that it cycles focus target. Enter will actually select the tab.

Comment thread src/components/tab-group/tab-group.html Outdated
(keydown.arrowLeft)="focusPreviousTab()"
(keydown.enter)="selectedIndex = focusIndex">
<div class="md-tab-label" role="tab" md-tab-label-wrapper
*ngFor="#label of labels; #i = index"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let

@jelbourn

jelbourn commented May 4, 2016

Copy link
Copy Markdown
Contributor

@robertmesserle Now needs rebasing on my mega change #384

Comment thread src/components/tab-group/tab-group.html Outdated
<div class="md-tab-body"
*ngFor="let content of contents; let i = index"
[class.md-active]="selectedIndex == i"
[attr.id]="getTabContentId(i)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just id should work.

Comment thread src/components/tab-group/tab-group.ts Outdated
}

/**
* Tracks which element has focus; used for keyboard navigation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/** Gets the index of the tab that currently has focus. */

?

@jelbourn

Copy link
Copy Markdown
Contributor

Looks good aside from that one last comment and a needed rebase.

@jelbourn

Copy link
Copy Markdown
Contributor

LGTM

@robertmesserle
robertmesserle merged commit ada285c into angular:master May 17, 2016
@robertmesserle robertmesserle mentioned this pull request May 17, 2016
2 tasks done
andrewseguin pushed a commit to andrewseguin/components that referenced this pull request Oct 15, 2018
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants